﻿@model List<rootQuestion>
@{
    ViewBag.Title = "OpenTest";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="topPanel">
    <div id="currTime">
    </div>
    <div id="testName">
    </div>
</div>
@using (Html.BeginForm("SubmitTest", "User"))
{
    @Html.Hidden("id", (int)ViewBag.TestID)
    <div id="questionsArea">
        @for(int i = 0; i < Model.Count;i++)
        {
            <fieldset id= "questionItem">
            <h3>@Model[i].quest</h3>
                @for (int j = 0; j < Model[i].answ.Length; j++)
                {
                <p>
                    @Html.CheckBox(String.Format("checkbox{0}{1}", i, j))
                    @Html.Label(String.Format("checkbox{0}{1}", i, j), @Model[i].answ[j])
                </p>
                }
            </fieldset>
        }
    <input type="submit" id="submitTest" value="Done!" />
    </div>
}
